﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using System.Security.Cryptography;
using ResourceLoadBalancer.WebServices.Contracts.Data;
using ResourceLoadBalancer.WebServices.Clients.Helpers;
using System.Net;

namespace ResourceLoadBalancer.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            FileSystemScanner fileSystemScanner = new FileSystemScanner();
            SharePointScanner sharepointScanner = new SharePointScanner();
            
            string scanType = args[0];
            string path = args[1];
            string queueName = args[2];

            Console.ReadLine();

            if (scanType == "FileSystem")
            {
                fileSystemScanner.ConfigureQueuing(queueName);
                fileSystemScanner.ScanResources(path);
                
            }
            else if (scanType == "SharePoint")
            {
                sharepointScanner.ScanResources(path);
            }
        }
    }
}
